﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace DotNETX.CommonWcfHost
{
    [ServiceContract]
    public interface ICommonHostController
    {
        [OperationContract]
        IEnumerable<string> GetServiceNames();
        [OperationContract]
        CommunicationState GetStatus(string name);
        [OperationContract]
        bool Open(string name);
        [OperationContract]
        bool ReOpen(string name);
        [OperationContract]
        bool Close(string name);
        [OperationContract]
        int OpenAll();
        [OperationContract]
        int CloseAll();
        [OperationContract]
        int CountOpened();
        [OperationContract]
        int CountNotOpened();
    }

}
